home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / kickups.swf / scripts / DefineSprite_66 / frame_21 / DoAction.as < prev   
Encoding:
Text File  |  2011-06-09  |  1.0 KB  |  42 lines

  1. unloadMovieNum(1);
  2. view_scores = "";
  3. my_ranking = "";
  4. num = "1";
  5. max_possible_score = "50000";
  6. while(numplayers >= num)
  7. {
  8.    if(eval("score_" add num) < max_possible_score)
  9.    {
  10.       numbers = numbers add num add "\r";
  11.       names = names add eval("name_" add num) add "\r";
  12.       scores = scores add eval("score_" add num) add "\r";
  13.    }
  14.    num += "1";
  15. }
  16. if(justlooking != "1")
  17. {
  18.    num = "1";
  19.    while(num < numplayers)
  20.    {
  21.       if(my_score == eval("score" add "_" add num) and my_name == eval("name" add "_" add num))
  22.       {
  23.          my_ranking = "YOU\'RE RANKED IN POSITION " add num add "!";
  24.       }
  25.       num += "1";
  26.    }
  27.    if(my_ranking eq "")
  28.    {
  29.       my_ranking = "YOUR NOT ONE OF THE TOP " add numplayers add " PLAYERS, SORRY!";
  30.    }
  31. }
  32. else
  33. {
  34.    my_ranking = "TRY TO BEAT YOUR PREVIOUS BEST FIRST!";
  35.    if(eval("/:compromised") == "1")
  36.    {
  37.       my_ranking = "game performance compromised! it\'s not fair to submit an unfairly achieved score!";
  38.    }
  39. }
  40. my_score = "0";
  41. stop();
  42.